const root = {
    val: 'A',
    left: {
      val: 'B',
      left: {
        val: 'D'
      },
      right: {
        val: 'E'
      }
    },
    right: {
      val: 'C',
      left: {
        val: 'F'
      },
      right: {
        val: 'G'
      }
    }
  }



const queue = [root]


let node = queue.shift()


console.log(node)


//console.log(node.val)




